
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title><?=$title;?></title>
		<link rel="stylesheet" type="text/css" href="<?=$views_home;?>css/base.css"/>
		
		
		<style>
		
		
			.num_one{
				width:970px;

				border:1px #ccc solid; 
				margin:0 auto;
			}
			
			.num_one_head{
				width: 960px;
				height: 30px;
				margin: 0 auto;
				padding-left: 10px;
				background: #ecf2f5;
				font-size: 16px;
				color: #336699;
				line-height: 30px;

			}

			.num_one_1{
				width:940px;
				height: 60px;
				background: #fff;
				border-bottom:1px #ccc dashed;
				margin: 0 auto;
				
			}
			.num_one_pic_1{
				width:70px;
				height: 60px;
				background: url('<?=$views_home;?>image/body_pic.png')no-repeat;
				float: left;
				cursor: pointer;
			}
			.num_one_1_left{
				width:170px;
				height: 60px;
				background: #fff;

				float: left;

			}
			.num_one_1_left_p1{

				font-size: 15px;
				font-weight:bold;
				margin-top: 10px;
				cursor: pointer;
			}


			
			.num_one_1_mid{
				width:50px;
				height: 60px;
				background: #fff;
				float: left;
				margin-left: 400px;
				line-height: 60px;
				text-align: center;

			}


			.num_one_1_right{
				width:200px;
				height: 60px;
				background: #fff;
				float: left;
				margin-left: 20px;
				text-align:center;
			
			}
			.num_one_1_right_a{
				display: inline-block; 
				margin-top: 10px;

			}

	
		</style>
	</head>
	<body>
		<?php foreach($data_big as $k_big => $v_big):?>
		
    	<?php if($_GET['bigid'] == null  || $_GET['bigid'] == $v_big['cid']):?>
		<div class="num_one">
			
		<!--除for循环外,data0,classname均来自数据库查询结果-->		

			<?php if($v_big['parentid'] == 0):?>

			<div class="num_one_head">
				<a style="color:blue;" href="<?=$web_site;?>index.php?bigid=<?=$v_big['cid'];?>">
				<?=$v_big['classname'];?></a>
			</div>
			<?php endif;?>
			
			<?php foreach($data_big as $k_son => $v_son):?>
			<?php if($v_son['parentid'] == $v_big['cid']):?>
			<div class="num_one_1 clearFix">
				<p class="num_one_pic_1"><img src="<?=$views_home;?>image/body_pic.png"></p>
				<div class="num_one_1_left">
					<p class="num_one_1_left_p1">
						<a href="<?=$web_site;?>public.php?classid=<?=$v_son['cid'];?>"><?=$v_son['classname'];?></a>
					</p>
					<p class="num_one_1_left_p2">版主：<?=$v_son['compere'];?></p>
				</div>

				

				<div class="num_one_1_mid"><!--<?=$today_count=isset($today_count)?$today_count:0;?>/<?=$total;?>--></div>

				<?php foreach($result1 as $k1 => $v2):?>
				<?php if($v2):?>
				<?php if($v_son['cid'] == $v2[0]['classid']):?>
				<div class="num_one_1_right">
					<a class="num_one_1_right_a" href="<?=$web_site;?>personal.php?id=<?=$v2[0]['id'];?>"><?=$v2[0]['title'];?></a> 
					
					<?php foreach($result3 as $k3 => $v3):?>
						<?php if($v3[0]['uid'] == $v2[0]['authorid']):?>

					 <p><?=$addtime=date('Y-m-d H:i:s',$v2[0]['addtime']);?>&nbsp;&nbsp;&nbsp;<?=$v3[0]['username'];?></p>

						 <?php endif;?>
					 <?php endforeach;?>
				</div>
				<?php endif;?>
				<?php endif;?>
				<?php endforeach;?>
			</div>
			<?php endif;?>
			<?php endforeach;?>
		


		</div>
		<?php endif;?>
<?php endforeach;?>
	
	</body>	
</html>


